package com.silverbox.shopper.entity;

import java.io.Serializable;
import java.util.Date;

/**
box_alipay_apply_authtoken
 */
public class AlipayApplyAuthToken implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = -4191286309988802131L;

	/**
     */
    private Long id;

    /**
     * 授权的应用ID
     */
    private String appId;

    /**
     * 商户支付宝PID
     */
    private String alipayUserId;

    /**
     * 授权商户的AppId（如果有服务窗，则为服务窗的AppId）,签约2.0
     */
    private String alipayAppId;

    /**
     * 授权令牌
     */
    private String authToken;

    /**
     * 刷新令牌时使用
     */
    private String refreshToken;

    /**
     * 令牌有效期
     */
    private String expiresIn;

    /**
     * 刷新令牌有效期
     */
    private String reExpiresIn;

    /**
     * 授权生效时间
     */
    private Date authStart;

    /**
     * 授权失效时间
     */
    private Date authEnd;

    /**
     * 令牌状态
     */
    private String status;

    /**
     * 外部门店
     */
    private Integer externalStore;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 第三方平台
     */
    private String platform;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId == null ? null : appId.trim();
    }

    public String getAlipayUserId() {
        return alipayUserId;
    }

    public void setAlipayUserId(String alipayUserId) {
        this.alipayUserId = alipayUserId == null ? null : alipayUserId.trim();
    }

    public String getAlipayAppId() {
        return alipayAppId;
    }

    public void setAlipayAppId(String alipayAppId) {
        this.alipayAppId = alipayAppId == null ? null : alipayAppId.trim();
    }

    public String getAuthToken() {
        return authToken;
    }

    public void setAuthToken(String authToken) {
        this.authToken = authToken == null ? null : authToken.trim();
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken == null ? null : refreshToken.trim();
    }

    public String getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(String expiresIn) {
        this.expiresIn = expiresIn == null ? null : expiresIn.trim();
    }

    public String getReExpiresIn() {
        return reExpiresIn;
    }

    public void setReExpiresIn(String reExpiresIn) {
        this.reExpiresIn = reExpiresIn == null ? null : reExpiresIn.trim();
    }

    public Date getAuthStart() {
        return authStart;
    }

    public void setAuthStart(Date authStart) {
        this.authStart = authStart;
    }

    public Date getAuthEnd() {
        return authEnd;
    }

    public void setAuthEnd(Date authEnd) {
        this.authEnd = authEnd;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Integer getExternalStore() {
        return externalStore;
    }

    public void setExternalStore(Integer externalStore) {
        this.externalStore = externalStore;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform == null ? null : platform.trim();
    }
}